import { AnimatorStateLogic } from "../../../../../../extensions/oops-plugin-framework/assets/libs/animator/core/AnimatorStateLogic";
import { Role } from "../../Role";
import { AnimationEventHandler } from "./AnimationEventHandler";

/** 攻击状态逻辑 */
export class RoleStateSkill extends AnimatorStateLogic {
    private role: Role;
    private anim: AnimationEventHandler;

    public constructor(role: Role, anim: AnimationEventHandler) {
        super();
        this.role = role;
        this.anim = anim;
    }

    private onAttack() {
    }

    public onEntry() {

    }

    public onUpdate() {

    }

    public onExit() {
        var onSkillComplete = this.role.RoleView.animator.onSkillComplete;
        onSkillComplete && onSkillComplete();
    }
}

